package creatorMode.decorator;

public class ClubbedTroll implements Troll{
    private final Troll  troll;

    public ClubbedTroll(Troll troll) {
        this.troll = troll;
    }

    @Override
    public void attack() {
        troll.attack();
        //装饰
        System.out.println("巨魔获得棍棒能力");
        System.out.println("巨魔发起棍棒攻击");

    }

    @Override
    public int getAttackPower() {
        return troll.getAttackPower();
    }

    @Override
    public void fleeBattle() {
troll.fleeBattle();
    }
}
